@use "xz-helper";

$hdHeight: 88rpx;


.shop-map {
  &__hd {
    height: $hdHeight;
  }

  &__bd {
    width: 100vw;
    height: calc(100vh - #{$hdHeight});
  }

  &__tabs {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 12rpx 32rpx;
    font-size: 28rpx;
    border-bottom: 1px solid #F0F0F0;

    &__item {
      padding: 12rpx 32rpx;
      border-radius: 50rpx;
      color: #6C6C6C;
      background-color: #F0F0F0;
      cursor: pointer;

      &--active {
        color: #FFF;
        background-color: var(--primary-color);
      }
    }
  }

  &__operation {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    padding: 32rpx 22rpx;
    font-size: 0.9em;
    border-radius: 16rpx;
    background-color: #FFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);

    &__line {
      display: flex;
      justify-content: space-between;
      align-items: center;

      & + .shop-map__operation__line {
        margin-top: 22px;
      }

      &__item {
        display: flex;
        align-items: center;
      }
    }

    &__item {
      display: flex;
      flex-shrink: 1;
      justify-content: space-between;
      align-items: center;
      min-width: 90rpx;
      padding: 12rpx 20rpx;
      border-radius: 8rpx;
      color: #6C6C6C;
      background-color: #F8F8F8;
      cursor: pointer;

      &--dt {
        display: flex;
        flex: 1 1;
        justify-content: space-between;
        align-items: center;
      }

      .shop-map__operation__item__sub {
        flex: 1 1;
        text-align: center;
      }
    }

    &__icon {
      width: 26rpx;
      height: 26rpx;
    }
  }

  &__detail {
    font-size: 28rpx;

    &__main {
      display: grid;
      grid-template: minmax(50rpx, auto) / 50% 46%;
      grid-row-gap: 16rpx;
      grid-auto-rows: minmax(50rpx, auto);
      justify-content: space-between;
      padding: 20rpx 24rpx;
      margin-bottom: 22rpx;
      border-radius: 10rpx;
      background-color: #F8FAFB;
    }

    &__item {
      @include xz-helper.textHidden(3);
    }

    &__address {
      display: flex;
      justify-content: space-between;
      margin: 0 20rpx;

      &__main {
        display: flex;
        flex-direction: column;
        width: 70%;
      }

      &__desc {
        color: #999;
      }
    }

    &__icon {
      width: 42rpx;
      height: 42rpx;
      margin: auto;
      filter: brightness(10000%);
    }

    &__btn {
      width: 88rpx;
      height: 88rpx;
      padding: unset;
      margin-bottom: 4rpx;
      border-radius: 50%;
      background-color: var(--primary-color);

      .at-button__text {
        display: flex;
      }
    }

    &__jump {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: .8em;
      color: #ACB3C7;
      cursor: pointer;
    }

    &__label {
      color: #666;
    }
  }
}
